package com.lagou.edu.feign;

import com.lagou.edu.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author 梅松
 * @Date 2021/10/22 15:05
 */
@FeignClient(value = "lagou-service-email",path = "/email")
@Service
public interface EmailFeign {

    @GetMapping("/email/{email}/{code}/{expire_time}")
    public Result<Boolean> email(@PathVariable String email, @PathVariable String code,@PathVariable int expire_time);
}
